package io.kiki.sba.registry.server.clientInterface.strategy;

import io.kiki.sba.registry.common.model.client.pb.GetRevisionsResponse;
import io.kiki.sba.registry.common.model.client.pb.MetaHeartbeatResponse;
import io.kiki.sba.registry.common.model.client.pb.ServiceAppMappingResponse;
import io.kiki.sba.registry.common.model.store.AppRevision;
import io.kiki.sba.registry.core.model.RegisterResponse;

import java.util.List;

public interface AppRevisionHandlerStrategy {


    void handleAppRevisionRegister(AppRevision appRevision, RegisterResponse response, String remoteAddress);


    ServiceAppMappingResponse queryApps(List<String> services, String remoteIp);


    GetRevisionsResponse queryRevision(List<String> revisions);


    MetaHeartbeatResponse heartbeat(List<String> revisions);
}
